#:import FittableLabel ui.fittable_widgets.FittableLabel
#:import DisableableButton ui.disableable_button.DisableableButton
#:import ConfirmationButton ui.confirmation_button.ConfirmationButton
# import UnButton ui.unclikableButton.UnButton

<GuessWordScreen>:
    guess_button: btn
    skip_button: skip_btn
    pause_button: pause_btn
    word_label: wlabel
    bx_layout: bx_layout
    left_btn: left_btn
    right_btn: right_btn
    progress_bar: pr_bar
    box_layout_1: box_layout_1
    orientation: 'vertical'
    BoxLayout:
        id: box_layout_1
        orientation: 'horizontal'
        size_hint_y: 0.2
        DisableableButton:
            id: pause_btn
            size_hint_x: 0.2
            size_hint_y: 0.4
            text: _('Pause')
            on_release: root.paused()
        ProgressBar:
            id: pr_bar
            size_hint_y: 0.4
            value: root.pbValue
            max: root.pbMaxValue
    BoxLayout:
        id: bx_layout
        orientation: 'horizontal'
        DisableableButton:
            id: left_btn
            size_hint_x: 0.1
            on_release: root.button_released(0)
            on_press: root.button_pressed(0)
        UnButton:
            size_hint_y: 0.9
            size_hint_x: 0.9
            background_normal: root.path_to_pict
            coef: 0.9
            id: wlabel
            text: root.word_str
        DisableableButton:
            id: right_btn
            size_hint_x: 0.1
            on_release: root.button_released(1)
            on_press: root.button_pressed(1)
    BoxLayout:
        orientation: 'horizontal'
        BoxLayout:
            orientation: 'vertical'
            ConfirmationButton:
                color_normal: 'red'
                text_normal: _('Fail')
                on_confirm: root.fail()
            ConfirmationButton:
                id: skip_btn
                color_normal: 'default'
                on_confirm: root.put_back()
        DisableableButton:
            id: btn
            color_name: 'green'
            text: _('Guessed')
            on_release: root.guessed()
